package com.jhxx.service.impl;

import com.jhxx.mapper.GoodsDao;
import com.jhxx.entity.Goods;
import com.jhxx.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author chengxu
 * Date  2019-12-09
 */
@Service
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    private GoodsDao goodsDao;
    
    @Override
    public Goods get(String id){
        return goodsDao.get(id);
    }
    
    @Override
    public List<Goods> findList(Goods goods) {
        return goodsDao.findList(goods);
    }
    
    @Override
    public List<Goods> findAllList() {
        return goodsDao.findAllList();
    }
    
    @Override
    public int insert(Goods goods) {
        return goodsDao.insert(goods);
    }
    
    @Override
    public int insertBatch(List<Goods> goodss){
        return goodsDao.insertBatch(goodss);
    }
    
    @Override
    public int update(Goods goods) {
        return goodsDao.update(goods);
    }
    
    @Override
    public int delete(Goods goods) {
        return goodsDao.delete(goods);
    }

}
